<template>
  <div>
   <h1>Testx</h1>
   <!-- <div>名称: {{$store.state.indexModel.msg}}</div> -->
   {{msg}}
   <button @click="setName">set</button>
  </div>
</template>

<script>
import {mapState,mapMutations,mapGetters,mapActions} from 'vuex';
export default {
 mounted(){
     
 },
 computed:{
   ...mapState("indexModel",["msg"]),
    // ...mapState("listModel",["msg"]),
 },
 methods:{
   ...mapMutations("indexModel",["setName"])
 }
};
</script>